package com.example.smartlearning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.smartlearning.entity.CarouselEntity;
import com.example.smartlearning.entity.UserEntity;
import jakarta.servlet.http.HttpServletRequest;
import org.apache.catalina.User;

public interface UserService extends IService<UserEntity> {
    String logic(String phone, String pwd, HttpServletRequest request);

    String register(String account, String pwd);

    String updateUser(int userId, String nickName, String number, String avatar, String email, String phone, String interest, int grade, HttpServletRequest request);

    String updatePwd(String account, String pwd, String newPwd);

    String getUpvoteList(int userId, int start, int limit);//获取用户喜欢列表

    String liberalVip(int userId);
    String updateUserAvatarInt(int userId, String avatar);//用户更新头像

    String updateUserPointsAdd(int userId, int points);// 用户增加积分
    String updateUserPointsDelete(int userId, int points);// 用户增加积分
    String selectFace(String name);

    String addFace(int userId,String name,String img);


}
